{extend name="public:base" /}

{block name="css"}
<link href="__INDEX__/css/news.css" tppabs="__INDEX__/css/news.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/list.css" tppabs="__INDEX__/css/list.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/css2.css" tppabs="__INDEX__/css/css2.css" rel="stylesheet" type="text/css">

<style>

  .cx_bg {
    WIDTH: 726px;
    background: url(__INDEX__/images/page_09.jpg) no-repeat;
    height: 525px
  }

  .cx_titel {
    COLOR: #1e50a2;
    FONT-SIZE: 14px;
    FONT-WEIGHT: bold
  }

  .cx_btn {
    BORDER-BOTTOM: 0px;
    BORDER-LEFT: 0px;
    WIDTH: 62px;
    background: url(__INDEX__/images/cx_btn.gif) no-repeat;
    HEIGHT: 23px;
    COLOR: #fff;
    FONT-SIZE: 12px;
    BORDER-TOP: 0px;
    BORDER-RIGHT: 0px
  }

  table, td, tr, th {
    font-size: 12px;
    line-height: 20px;
  }

  .cx_jg {
    background: url(__INDEX__/images/page_16.jpg) no-repeat;
    width: 807px;
  }
</style>
{/block}

{block name="main"}
<table width="980" border="0" cellspacing="0" cellpadding="0">
    <tbody><tr>
        <td width="252" height="300" valign="top" bgcolor="#FFFFFF">
            <table width="244" border="0" cellpadding="0" cellspacing="0" class="tablex5">
                <tbody><tr>
                    <td height="30" background="__INDEX__/images/list_leibg.jpg" tppabs="__INDEX__/images/list_leibg.jpg" class="list_dhbt" style="padding-left:24px">
                        <div style="float:left"><img name="" src="__INDEX__/images/lbxtb.jpg" tppabs="__INDEX__/images/lbxtb.jpg" alt=""></div>
                        <div style=" float:left;background-image:url(__INDEX__/images/lbbj.jpg);	background-repeat: repeat-x;width: auto; height:29px; line-height:29px"><span id="LsortName">业务工作</span></div>
                        <div style="float:left"><img name="" src="__INDEX__/images/lbxtbend.jpg" tppabs="__INDEX__/images/lbxtbend.jpg" alt=""></div>
                    </td>
                </tr>
                <tr>
                    <td height="200" valign="top" bgcolor="#F5F5F5">
                        <div class="ywgz">
                            <ul>
                                {volist name="yw_type_list" id="vo"}
                                <li><a href="{:url('news', ['categoryId' => $vo.id])}">{$vo.name}</a></li>
                                {/volist}
                            </ul>
                        </div>
                    </td>
                </tr>
                </tbody></table>

        </td>
        <td valign="top" bgcolor="#FFFFFF">
            <table width="726" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                <tbody><tr>
                    <td class="top_leidh" style="color:#333333">
                        当前位置：
                        <a href="{:url('index')}">主页</a> &gt;
                        <a href="javascript: void(0)">职称查询</a>

                    </td>
                </tr>
                </tbody></table>
            <table width="726" border="0" cellpadding="0" cellspacing="0" class="list_tablebk">
                <tbody><tr></tr>
                <tr>
                    <td height="40" class="list_newlb">
                        <div class="cx_bg">
                            <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
                                <tbody>
                                <tr>
                                    <td height="55" colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top" width="59%">
                                        <table border="0" cellspacing="0" cellpadding="0" width="95%" align="right">
                                            <tbody>
                                            <tr>
                                                <td class="cx_titel" height="30" align="middle">职称查询</td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <form name="Info" method="post" action="{:url('jobForm')}" id="zbjd" style="width:100%; float:left;">
                                                        <table style="MARGIN-TOP: 30px" border="0" cellspacing="0" cellpadding="0" width="98%">
                                                            <tbody>
                                                            <tr>
                                                                <td height="40" width="35%" align="right">
                                                                    <strong>姓&nbsp;&nbsp;名：</strong>
                                                                </td>
                                                                <td width="65%">
                                                                    <input name="name" class="line2" id="name" size="20">
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td height="40" width="35%" align="right">
                                                                    <strong>证书编号：</strong>
                                                                </td>
                                                                <td width="65%"><input name="no" class="line2" id="no" size="20"></td>
                                                            </tr>
                                                            <tr>
                                                                <td height="40">&nbsp;</td>
                                                                <td>
                                                                    <input class="cx_btn" type="button" value="查 询" id="B1" name="B1">
                                                                    <input class="cx_btn" type="reset" value="重 写" name="B2">
                                                                </td>
                                                            </tr>
                                                            </tbody>
                                                        </table>
                                                    </form>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td width="100%">&nbsp;</td>
                                    <td valign="top" width="33%">
                                        <table border="0" cellspacing="0" cellpadding="0" width="205">
                                            <tbody>
                                            <tr>
                                                <td height="33">
                                                    <table border="0" cellspacing="0" cellpadding="0" width="85%" align="right">
                                                        <tbody>
                                                        <tr>
                                                            <td height="30">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                            </tr>
                                            </tbody>
                                        </table>
                                        <table border="0" cellspacing="0" cellpadding="0" width="205">
                                            <tbody>
                                            <tr>
                                                <td height="33" background="__INDEX__/images/page_21.jpg">
                                                    <table border="0" cellspacing="0" cellpadding="0" width="85%" align="right">
                                                        <tbody>
                                                        <tr>
                                                            <td height="30"><strong>友情提示:</strong></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="ak" border="0" cellspacing="0" cellpadding="0" width="95%" align="center">
                                                        <tbody>
                                                        <tr>
                                                            <td>请输入证书编号以及姓名，并且应准确无误,如未查询到信息。请联系专业技术人员管理科核实。</td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!--<ul>

                          <IFRAME src="../cx/ezk.asp" frameBorder=0 width="100%" scrolling=no height=530></IFRAME>
                        </ul>-->
                    </td>
                </tr>
                </tbody></table>
        </td>
    </tr>
    </tbody></table>
{/block}

{block name="js"}
<script src="__STATIC__/layer/layer.js"></script>
<script>
    $(function () {
        $("#B1").click(function () {
            var name = $("#name").val();
            var no = $("#no").val();

            if (name == '') {
                layer.alert('请填写姓名')
                return;
            }
            if (no == '') {
                layer.alert('请填写证书编号')
                return;
            }

            var url = "/index/index/jobForm";
            $.ajax({
                url: url,
                type: "Post",
                data: { no: no, name: name },
                dataType: "json",
                success: function (data) {
                    if (data.result == 1) {
                        var url = "/index/index/jobDetail/name/" + name + "/no/" + no;

                        location.href = url
                    }else{
                        layer.alert(data.msg)
                    }
                },
                error: function () {
                    layer.alert('系统异常，请重试或联系技术');
                }
            });
        })
    })
</script>
{/block}